home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1428_NeXT_position_on_C++.rtf < prev    next >
Text File  |  1993-11-08  |  2KB  |  32 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f3\fmodern Ohlfs;}
  2. \paperw11760
  3. \paperh7200
  4. \margl120
  5. \margr120
  6. {\colortbl;\red0\green0\blue0;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q:  What is NeXT's position on C++? \
  8. \
  9. A: In Release 2 and later, NeXT provides a C++ compiler bundled with the extended release software.  This includes a port of the GNU G++ compiler which has been extended to recognize Objective-C constructs.  The compiler is based on G++ version 1.36.4, which implements version 2.0 of the C++ language, as specified by AT&T.  It is distinguished from AT&T's cfront compiler in that it produces "native code" (or machine code) rather than C code.  Thus it is faster than AT&T's.\
  10. \
  11. The Objective-C++ compiler consists of the compiler driver (/bin/cc++), the compiler proper (/lib/cc1++), a post-linker (/lib/collect), a symbol “demangler” (/bin/g++-filt), an enhanced symbol table tool (/bin/nm++), and an enhanced profiler (/usr/ucb/gprof++).  In addition, the debugger provides support for debugging C++ (see the Debugger release notes).\
  12. \
  13. InterfaceBuilder does not support C++.  It generates template code in Objective-C, and its palette objects are Objective-C objects.   The AppKit also continues to be Objective-C based.  However, you can integrate InterfaceBuilder nib files and C++ and Objective-C language code together into one program in the NeXT environment.  See ../Objective_C/integrating_C++_code.rtf for details on how to do this. \
  14. \
  15. S
  16. \fc1\cf1 upport for C++ is intended to give developers with a significant investment in C++ object classes a migration path to the NeXT development environment.  We recommend that you use Objective-C for any application you are developing from scratch.  \
  17. \
  18. There is an example located in /NextDeveloper/Examples/AppKit/CalculatorLab++ which illustrates the integration of InterfaceBuilder nib files, Objective-C source code, and C++ source code into one program.\
  19. \
  20. See also:\
  21.     
  22. \fc0\cf0 ../Objective_C/integrating_C++_code.rtf
  23. \fc1\cf1  for a technical description of how to integrate \
  24.             Objective C with C++.\
  25.        The /NextDeveloper/Examples/Appkit/CalculatorLab++ example.\
  26. \
  27. QA591\
  28. \
  29. Valid for 2.0, 3.0\
  30. \
  31.  
  32.